package com.dckeji.shiplock.webapp.dao;

import com.dckeji.shiplock.webapp.pojo.Crew;
import com.dckeji.shiplock.webapp.pojo.Owner;
import com.dckeji.shiplock.webapp.pojo.Route;
import com.dckeji.shiplock.webapp.pojo.UserInfo;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: TianWei
 * Date: 2017/8/11
 * Time: 10:11
 */
public interface IOwnerDao {

    int ownerAuthentication(Owner users);

    int addCrew(Crew crew);

    int crewAuth(Crew crew);

    int addRoute(Route route);

    Owner queryOwnerInfo(UserInfo userInfo);

    Crew queryCrewByPhone(Crew crew);

    Crew queryCrewByOwner(UserInfo userInfo);

    Crew queryCrewByOpenId(String openId);

    List<Route> route(String openid);

    List<Crew> queryCrewInfos(Integer ownerId);

    int deleteCrew(Integer crewId);

    int updateCrew(Crew crew);

    Owner queryOwnerInfoByShipNo(String shipNo);

    int updateCrewPwd(UserInfo userInfo);

    int updateOwnerpwd(UserInfo userInfo);

    Route queryRouteByOpenId(String openId);


}
